                 document.getElementById('userDropdown').innerHTML = dropdownContent;
                });
        }

        function selectUser(username) {
            const selectedUsersContainer = document.getElementById('selectedUsers');
            const currentMembers = Array.from(selectedUsersContainer.children).map(child => child.dataset.username);

            if (!currentMembers.includes(username)) {
                const userDiv = document.createElement('div');
                userDiv.className =