adds text elements to node groups