To smoothly update the spinner it is require to implement the spinner in the main methods of the loader.