Adjust the main page layout and function