change to use chart.js