basic page delete functionality and improve new/edit