form save() for create and update operations when clicking on button Save