setting global properties for tooltips to remove redundant code