edits for phone gap