Update preview.html

added conditional tag