Added method to inflate the fragment view.