Fix to delete course functionality. Courses are now always removed from html list after deletion.