adding tree layout