add functionallity to progressbar