1 of 2(progress bar functionality