simplify Progressbar access code.