Seems unsafe again to rely on the widget's css file name to determine the widget name. It's probably better to make a dictionary above.