adding group switch event.