added deviceready hook