Updated swipe functionality