update bar animation and incorporated more data