fixing events
adding pie chart example