Further refined the end fragment, now passing the fragment type to newInstance() and ensuring the correct view in getView()