closed the delete statement in editPage