save item state on configuration change