adds viewport to layout