A resultsView function to retrieve data.