move the phonegap hide until initialization has happened