clicking an option toggles the checkbox