added the ability to add & edit pages