add a ThreadUI.onMessageSending