updates layout