working on the Tree Layout