save tag state.