make sure onCreateView and onResume do not get both called when view is created