Added event argument to onDeviceSelector()

Closes #92