added animation to the graphs