add the trace html code