added support for swipe