Reset button logic.