loading electives by group and switching between them