add swipe code