working swipe and buttons