Refactor for group_detail page.