finish tree layout