Moved the WebUI code out of the arg parse function.