Set up pagination and add to main index view