Made main page into fragment and fragment activity.