Added support for swipe gestures