update progress-bar-element sample code