display detail cards correctly