implement swipe for touch devices, minor fixes