Progress bar is working in main activity.