discard changes when content saved