Saved state working with pie chart