Added alert to cordova