add teamCount check and clear new modal