Made reset button functional