index updated to listen ondeviceready event;