preview and autosave for pages