fixed the main page layout