Add basic pagination to index views.