remove some code which have concern to editing state