add group name changes to legend; the previous change should also remove old nodeGroups and old edgeGroups on config changes from the legend