added new serialization for widgets