adding viewport stuff to index