add click function on the search result