Added Callback Function for Swipe