feature(edit) save file only if it was changed