* use custom caret position function * add try catch to not show the tooltip if any error occured * log error