Optimize main page layout