updates front end search query