Fixed UI Issues

The UI shows the correct relay state when switching between USB relay
devices.