course detail and pie chart