using setSelectionRange