Adjust the layout