added reset button function