Updating the layout