get the details data and add to the tableview