Allow preview to work before the document is saved