Component to manage the tree structure