refactor adding webview gesture recognizer