wrapped fragment listview in a function