add search click functionality