working in preloader.hide()