added fadein and fadeout