add swipe control

building swipe function at line 55 app.’s