add widget to display pdf.js preview