add fade transition when swithing