Add switching fragments on tab clicks.