Added swipe functionality