[webui] continue refactoring the top smells