working on the swipe gesture