removed a useless sharedpref and add for loop to display the listview