Fixed bugs associated with tooltips and the tooltip toggle button