issue #5057, refactor UICheckBox event callback