added dimming event handler for server