filter class names in widget