update for phone gap