Created new classes for the fragments and made the title change on tab change as well.