Use hand cursor when hovering over nodes
Refactor code to be more reusable