add some function
add message sending
add message sending and chat window binding
add new functions