updated HTML content for for loops