pagination added to index