Displaying the query in the results page