updated HTML content for while/until loops