changed add_device_to_list() to get_device_detail()