added support for html and graph viz preview