addteam functionality added