first vesion of progressbar