saves the search query in the search textbox