fixed some weird layout problems