replace checkbox with switch