Improved tooltip formatting