adding flip to cards and animations to bar chart changes