move index html out of code