Add reset button, and fix int input