add input action, fix subtract bug
add dup to html