Implemented button listener for team buttons