add the parent link to the container for the tree