move logic to reset forms to function expression
Merging with master to continue work

Merge branch 'master' into reset_button
Add reset button to dom
Remove repeated DOM els from index