Moved all checkbox code into checkboxes.cpp