migrate code to display group in a subpage