Refactored layouts page.