logic added to show the items in the table view.