 p-3">
            <div class="col text-center">
                <a href="/" class="btn btn-primary">Back to Todos</a>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const logsContainer = document.getElementById('logs');
            const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
            const ws = new WebSocket(`${wsProtocol}//${window.location.host}/ws/logs`);

            ws.onmessage