Added swipe functionality: now tabs can be switched by swiping right or left on the screen