closing search results box when event fired