added function for device url