refactored display of fields