added edit-update methods to controller