building the layout