Set index to render the tree navigation