refactor display field
fix issues of generated files