[frontend] Refactor class_groups views