Updated swipe handler