added the full app, after adding new method to define the device and to get the right url