Fixed the Visibility issue of pop up window while loading/reloading