fix compile error and synchronizate the UI change for Lua