change the main view using tap gesture recognizer to make them on a mask upon the main view (mandatory to catch tap on some complex view: webview, video, etc.)