Refine main page layout.