edit states