add displayDedails (partial) for index