applying touch gesture recognizer