small changes to view and deleting of files