improve chart colors and fixes refreshing bug