Update the layout