Extracting settings to serialized attribute and settings up DatePicker