fixing deleting the page