to simplify the code in case we want to add more events to nodes, like mouse over, or right click