added progress bar code