added swipe support