add fading functionality