refactor and jquery
swipe