heavy refactoring of tooltip styling