changed the ID for nodes
made a controller for outgoing messages