Added new function to return customer details is list ready format for UI