Added ability to edit pages