add chart func & update CSS and panel settings