on.search);
      const display_mode = urlParams.get('display_mode') || 'dropdown';
      const container = document.getElementById('chat-container');
      
      // If display mode is dropdown, initialize the dropdown interface first
      if (display_mode === 'dropdown') {
        // Create chat interface but don't append elements yet
        const chatInterface = new ChatInterface(
          null,           // Default site
          display_mode,   // Display mode from URL or default
          "list",  