only log html document as the output and improve ui