builds groups index view