Decouple client-side server and UI objects using events.