parse file content to array of dialogs, add method display dialog by index