Fix CS
Fix ViewHandler to return the most appropriate content-type

also fix doc