add global undo-tree mode