fixed some minor layout bugs