updated device event logic
to display the state saved in the IDeviceEvent when it is created.