Passing a sanitization object into activity adapter

 * Also fixed an injection bug in the file preview widget