added serialization for form, form handler library