Rohit : updated dynamic progress bar method