update PUB/SUB structure, and add node/index.js for UI