auto json serialization and form bug fix