Updated for reset button

Done with the changes for reset button.