transforms with adjusted custodial events handling from commit https://github.com/DCLP/navigator/pull/7