Build the body of populateDevicesList