refactored node state changed notification