define list adapter in MainFragment in onCreateView call