first implementation of layout.go