Sync checkbox with button.