added flipCheckBox