Function createTreeContainer