Set enabled flag when switching group.

set the flag and remove calls that are not required.