updated form helper api to be compliant with ActionPack 4.0