adding view generation to gen-index