if deviceready