fixing page error
added error handling to link_to_page
working on deleting pages