Handle search query box