modified homecontroller for search query updates