fixed the loader bug when user hits back button