Added reset button and added saved state.