modified main index file