adding reset button and logic