make the webview part more flexible and create a demo app