Add active flag to courses and only show active courses on the index