updating viewport stuff