* ui lua integration: event handling mechanism (complete)