improved progressbar rendering