simplify ui and init chartjs