check for listview in main or else