add send message function , send message to your own group.
keep the focus to the message text field after rendering the messages in the chat box.