on click listener for list of matches