added click handler for searchresults