Modified method chkSelect_Click.