change phonegap to cordova and add device feature