Adding reset functionality to button.