Add method to display UI message strings and refactor