update css and divs for charts