untested logic added for deleting pages