install tooltip formatter as a function