implement html output