wrap event handling in Deps.nonreactive