call setView in onCreate instead of onResume