Polyglot book and improved undo support