html preview and critical issue with document names