Initialize the checkboxes and underlying data to the correct values.