fixed minor bug repainting the chatwindow frequently instead of only when a msg enters. Forgot to actually send the msg when the send button is pressed.