format dialog html