Add index to tooltip name format function