app initialization before deviceready