adding the viewport stuff