would be better to move this logic into the view.html.php file or in the group model, that way its available to all tmpls and we keep the tmpl a little cleaner