add onDeviceReady event handler