add swipe lib
update swipe method