moved deviceready a bit for reload