Changes for getUndoManager()