added an array adapter to display the data