replaced progress bar with spinner