updating index with links