add deviceready callback