added colors of bars dynamic update