optimize classification filter, now manage class change in frontend