update edit page and view.