reposition caret