eate-course-btn').addEventListener('click', async (event) => {
                event.preventDefault();

                const button = event.target;
                button.disabled = true;
                button.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Creating...';

                const form = document.getElementById('course-form');
                const formData = new FormData(form);

                await createOrUpdateCourse(formData);
            });

            const createOrUpdateCourse 