Issue #352 fix (on/off button state)

This commit should ~~partially~~ fix Issue 352 by replacing Button with CompoundButton in updateUI() method and invoking setChecked().