added class name to group based upon input name