tooltip for nodes, and created functions for common logic