Updating controller for edit/save fix.