set saved flag on editor closing