Made addNewGroup a callback when adding a group when there were previously no groups.