added basic edited; refactored create and update actions into one view