Changed customListFields to customDisplayFields and added a function argument to identify where to display