moved work into showSelectedTeam