fixed a bug, can now view images/pdfs, can now link to files