add custom tooltip formatter to format data