categories loading and adding a node to the tree.