make listview work with new way of defining views