add $query to the searchForm closure