Refactored get_page_edit_handler()