Adding a generic configurator for the ui components