added pagination to teams index page