implement OnCheckChanged LUA event