implemented new swipe detector