Refactored ItemListActivity to MainActivity.