[webui] Refactor attributes