refactor : extract cursor, rename odfpdf as pdf viewer
 add defautl file viewer, remove limitation on upload of pdf only, correct a bug with file id containing non alphanumerci characters