add progress dialog to the scheduleactivity