phonegap integration of learner logging ui code