added functionality to reset button