implemented reset button