refactored student_team_controller.rb