fixed some layout bugs with the charts