added delete file function to fileviewer