update - add some method in html for input