Adding in delay to show preloader