Add gesture recognizer on both navbar and view