code refactor webui