Changed swipe event so that it works properly