update page view for add and edit