modified the way that css classes are added to widgets