turned the fade in and fade out functions into a more generalized transitions class, which I then used for the instant transition on tab switching also