update in edit and new page