hmtl input update after change insteax of button click