added index.html file write