implement initial display of query results