getMessages refactored
renderMessages in ThreadUI