add results group div to each result set, give it a unique name and insert the group of results