added height parameter to viewport