made the enrollment page trying to create ajax call to update courses taken when the enrol button is clicked