Added spinner and progress bar