edited fadeIn function