Use interval instead of timeout in webui