Change automatically structure of form