adding the cancel method for canceling a transition.