Updated the Code in the Save Action. 

On performing the save action, now a dialog is shown to the user