fix update/create actions in generated controllers