Used fragments to swipe and change views.