making the index.html a little more smart