update query with the text in the input box