fix template for displaying groups