separate view and edit page