Edit index file