Controlling the layout