finished refactoring
value updating form, cannot click button still