Added ItemListener to checkbox.