adding styles to nodes in tooltips