get the viewport working