[frontend] Refactor course_groups views