modified group index to display dynamic heading