Fade in

Have added a fade in function but the fade out when selecting a new file
gives trouble