only output div if tooltip is necessary