Connect to device when click the the device's name