update the page model when click on save