Added support for swipe effect