demo app can now determine if usb device was attached or detached when running