reset button implementation part 1