Swipe updates code