abstracted create tooltip and createTooltipArrow