Added pagination to index

Added pagination to index file