build dynamic form which binds all the form elements