elements: added a new event and function

Event: "onElementCreation"
Function: "createElementEx"