necessary changes for deleting files feature