fix tests broken by webui
bugfixes for webui