Support for custom rendering of widgets