Remove hardcoding to display fields in detail page