Add functions in webviewer

please add setuseragent to the webviewer!