update main index file