Added logic to each of the team pages.