Add query form to results page