move togglePrintPreview out of smit.js

and togglePrintPreview removes hrefs