Add namespaces to event listeners.