changed the js for showing the correct subgroups according to selected TargetGroup