get rid of state variable in editor