update switch event