allow loading a document with undo