fix checkboxes not saved to state