state editing