Implemented swipe to switch tabs