add logic for reset button