added group chooser functionality