add setCaretPosition function