Added select on click directive