add onMediaDelete callback