change progress bar so width obtained via model method