done the stuff for using a listview