Switch into phonegap structure