added phonegap device listeners