fixes some layout issues