Added pagination to index page