wire up the layout with width and height