call ondevice ready after defining it