add viewport to index