added swipe listener