progress bar partially working