add preloader and fix bug with black screen