refactored tooltip