fixing insert and update pages to use self page pattern