organized code in MainListAdapter and MainActivity