add tree for categories