Making the spinner work while loading