added swipe detector