code refactor

refactor of events for tooltipify.