change function ondeviceready