simplified tooltip code.
remove unused function