dynamically retrieve fields in detail view