                    <tbody>
                                    ${devices.map(device => 
                                        '<tr>' +
                                            '<td><code class="rc-code">' + device.deviceID + '</code></td>' +
                                            '<td>' + (device.product && device.product.name ? device.product.name : 'Unknown') + '</td>' +
                                            '<td>' + (device.serialnumber || '-') + '</td>' +
                               