Adds undo-tree