update the adapter so that the data is displayed.