Add support for widget attributes