Layout the various elements.