edit data-state check