add json serialization to form data
add clearing of form
add TODO