pass back the query to the page