build base layout