fix tooltip related functionality