Adding clear function, updating css Id for all nodes to match fx:id for method call, because event.resource only get id from css id, not fx:id