Fade effect added to close function