add widget filtering based on class