reuse code to make the progressbar divs