Added new method 'executeEvent' function

Is used for when user triggers an event