Added pie chart contents
refactored pie chart