Added a way to replace a named widget in a custom object.