factor out event handler, and rename validator namespace for WEB-7056 +review WEBCR-305