PROV-539 Fix mimetype issues and viewer load output