checking onDeviceReady