added confirm window to save edit function