add main-client.js connect & join event