on click event for selectAll