use form_state_defaults, form_state value should not be quoted
Revert "use form_state_defaults, form_state value should not be quoted"

This reverts commit 516ab07af79ffffe79cab55fe39bf0bd0c729c79.
ignore files
improve file writing function