refactored tooltip to a separate util object