Added on click functionality to list.