Added event handler for the "Reset" button.