Fixed PR 615

Added missing imports so it can build, ensure that new lines are preserved, and ensure that text is displayed properly in the long text dialogs
Merge pull request #617 from willlunniss/fix-615

Fixed PR 615