before switch
Add events