Wrote mouse methods for nodes.