Better code for MessagePane.