Serialization of UI objects implemented