hide the result panel if click outside or mouse out