Pie Chart now updates properly