Refactoring HTMLPopUpWebView