charts code cleanup
own div for charts to display. bug fixed