Change index function to public and rename the old one to teams
Modify link teams to index
Modify link teams to index
Modify template index to make this public
Modify link teams to index
Modify link teams to index
Modify test to new function index