added auto launch for html, pdf and docx