improved tooltip formatting