I didn't get the point that you have mentioned about feedback being displayed before the commit 501e3a9 
and I added the message in the else loop just because once the save button is pressed and everything goes fine..it enters the else loop and displaying message at that point will solve the purpose..of the issue..