Added cordova hooks