Adding reset button and functionality