Added proper swipe gestures recognizer instead of pan recognizer.