     window.history.pushState({path: newurl.toString()}, '', newurl.toString());
                
                // Hide modal
                document.getElementById('sessionModal').style.display = 'none';
                
                // Continue with initialization
                initializeWithSessionId();
            } else {
                alert("Please enter a valid session ID");
            }
        }
        
        // Function to cancel session ID entry
        function cancelS