#217 fixed checkboxes.

The checkboxes appeared to be working correctly but it wouldn't change the state of its corresponding state variable after the first click on the box, so I created handlers that adjusted which boolean was set to the state variable depending if that variable was already false or not.