Initial webui logic.