Added reset button and reset functionality