added swipe feature