disables patch editor when save form is being submitted