moving query results to show page