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