fix(viewer): fix dialog for html