finish the frontend code for dynamic update with related entity weight list