added onclick to checkboxes