autosave pages - not working with codemirror yet