Added logic for the change device link.
Fix bug for watching register on many devices.

Fixed bug that prevented the application from recognizing the
difference between the same register being watched on different
devices.