Added the fragment to the main activity.