Edit the layout of MainPage