Changed the tree node to add it self to the parent when created