getSelectedTeams logic in controller/view