add end swipe method