do not save document if save not required