Adding functionality of groupSwitcher