added dynamic progressbar