changing the click event to only be associated with the checkbox