Updating the layout.