add edit weigh in js, view