Reset button works!
reorganized confused code.