moving fragment creation to fragment manager in the activity