add update form and fix script