Added FadeIn and FadeOut functionality