auto update hash in url on change in the searchbox