getting only active teams

changed function to only show active teams