Fixed phone parsing if text is undefined. Show the correct widget according to new or edit state for modal