updated editing method in html page