added edit_page hook