fix some minor layout bugs