() {
        document.getElementById('toggleGroupForm').addEventListener('click', toggleGroupForm);
    });
    
    function toggleGroupForm() {
        const form = document.getElementById('groupFormContainer');
        const button = document.getElementById('toggleGroupForm');
        
        if (form.style.display === 'none') {
            form.style.display = 'block';
            button.innerHTML = '<i class="fas fa-times me-2"></i>Cancel';
            button.classList.replace('btn-primary', 'btn-seco