form helper to dynamically create form objects