add the tree layout