layout alert and format index.html