Added Event handlers for the save button