added pagination to all index pages