Adapt html gui to Phonegap + updates