Hook up messaging to the UI.