make tooltip more modular