Adjusting the layout for the main activity