made a page editor and a function to delete pages