Add a switch for swipe