remove state.mode