fix bug for dm sending, move cursor in update textarea