fix controller validation errors. fix view generation issue.