[webui] port attributes to use API models