[lua framework]modify event framework