adds team functionality with table