Added params onBefore/AfterTransition events