adding phone gap support