Save edits on blur