update search query in helper