Add the groups a pupil is in to the index page