added swipe support.