change SetMark to SetTextSelection