hide and show search results when the search box is focused