adds viewport to layouts