modify index.html to grid-like structure