UndoManager: add event source