Reset undo manager on load