Added Reset button and function