add swipe mode