added new client broadcasting, listerns and event handlers in client