use ondevice ready