add try autosave function in editor state