hooking up the progress bar logic