replacing index.html with html code