Add undo tree