change caret style when selecting; motion bug fix