Code formatting & changing index to html