Created the tree controller