change window to cordova