writing index file. refreshing.