fixing tooltip display issues