submitEdit event handling update

Updated submitEdit to work properly on blur event