controller, view and DB stuff for edit session