cleanup; moved the fragment creation codes to the right place in onResume