the code for the listview