re arrange ondeviceready