added basic swipe control