fix chart control in frontend