Refactor abstractMessagePanel

remove unnecessary display attribute