add the trigger method

add the trigger method that to trigger the event handlers.