add manager for selecting active groups

fix #486