auto set checkboxes on initialization