commit the changes on controller