fix layout issues that were causing bad html