Reset saved state when save button is clicked