Add UndoTree for easy undo history