add click handler for MessageWidget