initial conversion to cordova layout