Add viewport to index