fixed bugs with handling of widget events in custom_object_widget