added check, if at least one team is selected