FEATURE: 1.add switch 2. change form data to json