added group selection with events