added buttons to edit pages