add lua event, add gui window