updated listview code