change progressbar implementation