edit main index for linking