some change for contract edit model that figure out the thread cross issue.