tying bar graph update to progress