added onclick actions for checkboxes