updates layout.