Update the GUI layout.