cancel being edited state when updating file