Getting the index page to display results