construct layout for index.html